<template>
  <div>
    <CommonHeader />
    <div class="container_wrap" :style="{ height: height + 'px' }">
      <div class="_wrap">
        <Nuxt />
        <CommonFooter />
      </div>
    </div>
    <el-backtop target="._wrap" :bottom="90">
      <div>返回<br />顶部</div>
    </el-backtop>
  </div>
</template>
<script>
import { CommonHeader } from "~/components/headers/index.js";
import { CommonFooter } from "@/components/footers/index.js";

export default {
  components: {
    CommonHeader,
    CommonFooter,
  },
  data () {
    return {
      height: 0
    }
  },
  mounted () {
    this.height = document.body.clientHeight;
  }
};
</script>
<style <style lang="scss" scoped>
.container_wrap {
  padding-top: 80px;
  ._wrap {
    height: 100%;
    overflow: auto;
  }
}
</style>
